<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
	<channel>
		<title><?php e($sitename);?></title>
    	<link><?php e($siteurl);?></link>
    	<description><?php e($sitedesc);?></description>
    	<language>en-gb</language>
    	<pubDate><?php echo date("D, j M Y H:i:s", gmmktime()) . ' GMT';?></pubDate>
    	<?php echo $time->nice($time->gmt()) . ' GMT'; ?>
    	<docs>http://blogs.law.harvard.edu/tech/rss</docs>
    	<generator>CakePHP</generator>
    	<managingEditor>editor@example.com</managingEditor>
    	<webMaster>webmaster@example.com</webMaster>
    	<?php foreach ($events as $event): ?>
    		<item>
    			<title><?php echo $event['Event']['title']; ?></title>
      			<link>http://webdev/events/view/<?php echo $event['Event']['id']; ?></link>
      			<description><?php echo $article['Post']['byline']; ?></description>
      			<?php echo $time->nice($article['Post']['created']) . ' GMT'; ?>
       			<pubDate><?php echo $time->nice($time->gmt($article['Post']['created'])) . ' GMT'; ?></pubDate>
      			<guid>http://webdev/posts/view/<?php echo $article['Post']['url']; ?></guid>
			</item>
    	<?php endforeach; ?>
  	</channel>
</rss> 